@extends('layouts.admin_common') @section('content')

    @if(app('env')=='production')
        <script src="{{ secure_asset('/js/sy_common.js') }}"></script>
    @else
        <script src="{{ asset('/js/sy_common.js') }}"></script>
    @endif
    <div class="breadcrumbs_container">{{
	Breadcrumbs::render('admin.retain_list') }}</div>
    <div class="system_tab_line"></div>

    <div class="lyx_search_table">
        <form>
            <div class="row">
                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">会社名</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="corp_id" id="lyx_companys">
                            <option value="" >@lang('symessages.info.all_msg')</option>
                            @foreach($companys as $com)
                                <option value="{{$com->corp_id}}" {{is_selected($com->corp_id, $param, 'corp_id')}}>{{$com->corp_name}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">返品依頼日</label>
                    <div class="col-sm-8">
                        <input class="form-control lyx_datetimepicker" type="text"
                               @isset($param['star_date']) value="{{$param['star_date']}}" @endisset name="star_date">
                    </div>
                </div>

                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-1 col-form-label">~</label>
                    <div class="col-sm-8">
                        <input class="form-control lyx_datetimepicker" type="text"
                               @isset($param['end_date']) value="{{$param['end_date']}}" @endisset name="end_date">
                    </div>
                </div>
                {{--<div class="form-group row col-sm-4">--}}
                    {{--<label for="inputPassword" class="col-sm-4 col-form-label">返品依頼日</label>--}}
                    {{--<div class="col-sm-8">--}}
                        {{--<input class="form-control lyx_datetimepicker" type="text" value="">--}}
                    {{--</div>--}}
                {{--</div>--}}

                {{--<div class="form-group row col-sm-4">--}}
                    {{--<label for="inputPassword" class="col-sm-1 col-form-label">~</label>--}}
                    {{--<div class="col-sm-8">--}}
                        {{--<input class="form-control lyx_datetimepicker" type="text" value="">--}}
                    {{--</div>--}}
                {{--</div>--}}
            </div>

            <div class="row">
                <div class="form-check form-check-inline">
                    <label for="inputPassword" class="col-sm-10 col-form-label">未出荷のみ</label>
                    <div class="col-sm-4">
                        <input class="form-check-input" <?php is_selected('a', $param, 'deliver_state',3) ?> type="checkbox" value="a" name="deliver_state">
                    </div>
                </div>

            </div>

            <div class="row">
                <div class="col-sm-6"></div>
                <div class="col-sm-3">
                    <button class="btn btn-primary button_normal">検索</button>
                </div>
            </div>

        </form>


        <div class="lyx_table">

            <table class="table table-bordered">
                <thead>
                <tr>
                    <th scope="col">@lang('symessages.info.weituo_date')</th>
                    <th scope="col">@lang('symessages.info.company_name')</th>
                    <th scope="col">@lang('symessages.info.company_shop')</th>
                    <th scope="col">@lang('symessages.ajax_data.order_id')</th> {{--返品伝票No.--}}
                    <th scope="col">@lang('symessages.info.product_name')</th>
                    <th scope="col">@lang('symessages.info.old_size')</th>
                    <th scope="col">@lang('symessages.info.new_size')</th>
                    <th scope="col">@lang('symessages.info.order_num')</th>
                    <th scope="col">@lang('symessages.info.deliver_state')</th>
                    <th scope="col">@lang('symessages.ajax_data.courier_number')</th>
                </tr>
                </thead>
                <tbody>
                @foreach ($list as $k=>$val)
                    <tr>
                        <td>{{$val->create_time}}</td>
                        <td>{{$val->company_name}}</td>
                        <td>{{$val->shop_name}}</td>
                        <td>{{$val->order_id}}</td>
                        <td>{{$val->goods_name}}</td>
                        <td>{{$val->old_size}}</td>
                        <td>{{$val->size}}</td>
                        <td>{{$val->goods_num}}</td>
                        <td>{{$val->deliver_state}}</td>
                        <td>{{$val->courier_number}}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </div>


@endsection

